<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>test</title>
<style type="text/css">@import url(../README.css);</style>
<script type="text/javascript" src="../uuQuery.js"></script>
<script type="text/javascript" src="iterator.js"></script>
</head>
<body>
<p>Attribute operator /=</p>
<p>正規表現で uuQuery.js を検索</p>
 <ul>
  <li class="jQuery-1_2_6">jQuery</li>
  <li class="Ext-2_0.js">Ext.js</li>
  <li class="Prototype-1_6_2.js">Prototype.js</li>
  <li class="uupaa-0_6.js">uuQuery.js</li>
  <li class="Mootools-1_0">Mootools</li>
  <li class="Dojo-1_1">Dojo</li>
  <li class="YUI-2_6_2">YUI</li>
 </ul>
<script>
window.onload = function() {
  uuQuery('li[class/="^[a-z]+\\-[\\d_]+\\.js$"i]').forEach(function(v) {
   v.style.backgroundColor = "silver";
  });
  uuQuery('li[class/="^[a-z]+\\-[\\d_]+\\.js$"]').forEach(function(v) {
   v.style.backgroundColor = "green";
  });
}
</script>
<pre class="eg">
   &lt;ul&gt;
    &lt;li class="jQuery-1_2_6"&gt;jQuery&lt;/li&gt;
    &lt;li class="Ext-2_0.js"&gt;Ext.js&lt;/li&gt;
    &lt;li class="Prototype-1_6_2.js"&gt;Prototype.js&lt;/li&gt;
    &lt;li class="uupaa-0_6.js"&gt;uuQuery.js&lt;/li&gt;
    &lt;li class="Mootools-1_0"&gt;Mootools&lt;/li&gt;
    &lt;li class="Dojo-1_1"&gt;Dojo&lt;/li&gt;
    &lt;li class="YUI-2_6_2"&gt;YUI&lt;/li&gt;
   &lt;/ul&gt;

  <u>// アルファベット(大小区別せず) + "-" + 数字 + ".js" を検索する</u>
  uuQuery('li[class/="^[a-z]+\\-[\\d_]+\\.js$"i]').forEach(function(v) {
   v.style.backgroundColor = "silver";
  });

  <u>// アルファベット(小文字のみ) + "-" + 数字 + ".js" を検索する</u>
  uuQuery('li[class/="^[a-z]+\\-[\\d_]+\\.js$"]').forEach(function(v) {
   v.style.backgroundColor = "green";
  });
</pre>
</body>
</html>
